#pragma once
/*
	TemperatureDec.h
	Christopher Raffaele
	04.28.2008

	Temperature's class declarations
*/
#include<iostream>
#include<cstring>

class TemperatureConverter{
private:
	void showMenu(); //show the menu

	std::string *units; //array for unit labels
	bool userWantsToRunAgain(); //checks if the user wishes to continue

	unsigned int getConvertFromToChoice(bool from);
	double getTemperatureToConvert();

	void createUnitsString(); //set the value in the units array

	double calculateTemperatureConversion(double fromChoice, double temperature);

	void run(); // performs a unit conversion

public:
	TemperatureConverter(); //dynamically allocate memory for units
	~TemperatureConverter(); //deallocate units memory

	void start(); //runs conversion continuoutly
};